import { Component, Input, OnInit } from '@angular/core';

@Component({
  selector: 'app-json-folding',
  templateUrl: './index.html',
  styleUrls: ['./index.css']
})
export class JsonFoldingComponent implements OnInit {
  @Input() json: any;
  data: Object;
  constructor() {}
  ngOnInit(): void {
    this.data = JSON.parse(this.json);
  }

}
